package com.ymttest.database.sqlwapper.CSIM;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtFundDimension;
import com.ymttest.database.model.ymt_individualdiscoursecatetory;
import com.ymttest.utils.EnvSetup;

/************************************************************************************
 * @File name : ymt_individualdiscoursecatetoryWapper.java
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *csim
 ************************************************************************************/
public class ymt_individualdiscoursecatetoryWapper {
	SqlManager manage;

	
	public ymt_individualdiscoursecatetoryWapper() {
		manage = new SqlManager("ymtcsim" + EnvSetup.getEnv());
		 
	}
	public  ymt_individualdiscoursecatetory selectByPrimaryKey(String id) throws InterruptedException {
		ymt_individualdiscoursecatetory model=new ymt_individualdiscoursecatetory();
		List<ymt_individualdiscoursecatetory> list = manage.getSelectResults("com.ymttest.database.mapping.ymt_individualdiscoursecatetoryMapper.selectByPrimaryKey",id);
		if(list.size()>0)
			 model=list.get(0);
		manage.commit();
		return model;
	}
	public List<ymt_individualdiscoursecatetory> selectByCSId(Integer CSId)
	{
		List<ymt_individualdiscoursecatetory> list = manage.getSelectResults("com.ymttest.database.mapping.ymt_individualdiscoursecatetoryMapper.selectByCSId",CSId);
		manage.commit();
		return list;
	}
	public int updateByPrimaryKey(ymt_individualdiscoursecatetory record)
	{
		int count=manage.update("com.ymttest.database.mapping.ymt_individualdiscoursecatetoryMapper.updateByPrimaryKey",record);
		manage.commit();
		return count;
	}
	public static void main(String args[]) {
	  
	}
	
	
}
